Append Method

Appends a new element to the end of a one-dimensional array, increasing the size of the array by one.

Syntax



array.Append value


Notes

The Append method works with one-dimensional arrays only.


Example

This example appends a new element to the end of the aNames array.

aNames.append "Bill"

See Also

Dim statement; Array, Join, Split, Ubound functions; IndexOf, Insert, Pop, Redim, Remove, Shuffle, Sort, Sortwith methods; ParamArray keyword.